home *** CD-ROM | disk | FTP | other *** search
/ Aminet 3 / Aminet 3 - July 1994.iso / Aminet / util / cli / ATT_awk_1_0.lha / AT&T-awk / README < prev   
Encoding:
Text File  |  1994-05-12  |  2.7 KB  |  77 lines

  1. /****************************************************************
  2. Copyright (C) AT&T 1993
  3. All Rights Reserved
  4.  
  5. Permission to use, copy, modify, and distribute this software and
  6. its documentation for any purpose and without fee is hereby
  7. granted, provided that the above copyright notice appear in all
  8. copies and that both that the copyright notice and this
  9. permission notice and warranty disclaimer appear in supporting
  10. documentation, and that the name of AT&T or any of its entities
  11. not be used in advertising or publicity pertaining to
  12. distribution of the software without specific, written prior
  13. permission.
  14.  
  15. AT&T DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
  16. INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS.
  17. IN NO EVENT SHALL AT&T OR ANY OF ITS ENTITIES BE LIABLE FOR ANY
  18. SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  19. WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER
  20. IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  21. ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
  22. THIS SOFTWARE.
  23. ****************************************************************/
  24.  
  25. This is the version of awk described in "The AWK Programming Language",
  26. by A. V. Aho, B. W. Kernighan, and P. J. Weinberger
  27. (Addison-Wesley, 1988, ISBN 0-201-07981-X).
  28. Changes, mostly bug fixes, are listed in FIXES.
  29. If you distribute this code further, please please please
  30. distribute FIXES with it.  If you find errors, please report
  31. them to bwk@research.att.com.  Thanks.
  32.  
  33. The program itself is created by
  34.     make
  35. which should produce a longish sequence of
  36. messages roughly like this:
  37.  
  38.     yacc -d awk.g.y
  39.     
  40.     conflicts: 43 shift/reduce, 85 reduce/reduce
  41.     cc -g  -c y.tab.c
  42.     rm y.tab.c
  43.     mv y.tab.o awk.g.o
  44.     cmp -s y.tab.h prevy.tab.h || (cp y.tab.h prevy.tab.h; echo change maketab)
  45.     prevy.tab.h: No such file or directory
  46.     change maketab
  47.     lex  awk.lx.l
  48.     cc -g  -c lex.yy.c
  49.     rm lex.yy.c
  50.     mv lex.yy.o awk.lx.o
  51.     cc -g  -c b.c
  52.     cc -g  -c main.c
  53.     cc -g  -c parse.c
  54.     cc maketab.c -o maketab
  55.     ./maketab >proctab.c
  56.     cc -g  -c proctab.c
  57.     cc -g  -c tran.c
  58.     cc -g  -c lib.c
  59.     cc -g  -c run.c
  60.     cc -g  awk.g.o awk.lx.o b.o main.o parse.o proctab.o tran.o lib.o run.o    -lm
  61.  
  62. This produces an executable a.out;  you will eventually
  63. want to move this to some place like /usr/bin/awk.
  64.  
  65. The -g option (which generates symbol table information
  66. for debuggers) can be disabled by removing the line
  67.     CFLAGS = -g
  68. from the makefile.  Alternatively, you might replace
  69. it by
  70.     CFLAGS = -O
  71. if your compiler does significant optimization.
  72.  
  73. NOTE: This version uses ANSI C, as you should also.
  74.  
  75. The version of malloc that comes with some systems (e.g., IRIX) is
  76. astonishly slow.  If awk seems slow, you might try fixing that.
  77.